'use strict';

const Controller = require('egg').Controller;

class ChumController extends Controller {
  async index() {
    const {ctx} = this
    var db = this.app.mongodb;
    var res = await db.collection("chum").find().toArray()
    await ctx.render("chum",{res})
  }
}

module.exports = ChumController;

